package com.hf.work03;

/**
 * @author Lenovo-Healer
 */
public abstract class ColaEmployee {
    /**
     * 员工姓名
     */
    private String empName;
    /**
     * 员工生日月份
     */
    private int birthdayMonth;

    /**
     * @param month 月份
     * @return 奖金
     */
    public double getSalary(int month){
        if(month == this.birthdayMonth){
            return 100;
        }
        return 0;
    }
    /**
     * 打印
     * @param mon  打印工资的月份
     */
    public void printComployee(int mon){
        System.out.println(this.getEmpName()+mon+"月份工资"+getSalary(mon));
    }


    /**
     * 无参构造方法
     */
    public ColaEmployee() {
    }
    /**
     * 有参构造方法
     */
    public ColaEmployee(String empName, int birthdayMonth) {
        this.empName = empName;
        this.birthdayMonth = birthdayMonth;
    }

    /**
     * get/set方法
     * @return 返回值
     */
    public String getEmpName() {
        return empName;
    }

    public void setEmpName(String empName) {
        this.empName = empName;
    }

    public int getBirthdayMonth() {
        return birthdayMonth;
    }

    public void setBirthdayMonth(int birthdayMonth) {
        this.birthdayMonth = birthdayMonth;
    }
}
